// mitt全局消息类型
export const mittTypes = {
    // livekit消息
    LIVEKIT:{
        MESSAGE_CHAT_FROM_TYPE:{
            LOCAL:'local',
            BOT:'bot',
        },
        // 发送连接成功
        CONNECT_SUCCESS:'connect_success',
        // 发送本地静音控制
        AUDIO_ENABLE:'audio_enable',
        // 一体机讯飞套件asr显示麦克风声音动画
        ASR_SHOW_VOICEANIM:'asr_show_voiceanim',
        // 发送移动端本地静音控制
        AUDIO_ENABLE_MOBILE:'audio_enable_mobile',
        // 发送agent静音控制
        AUDIO_ENABLE_AGENT:'audio_enable_agent',
        // 发送打断消息
        INTERRUPT:'interrupt',
        // 停止回答按钮
        STOP_REPLY:'livekit_stop_reply',
        // 发送agent唤醒
        WAKEUP_AGENT:'wakeup_agent',
        // 发送agent睡眠
        SLEEP_AGENT:'sleep_agent',
        // 发送2d驱动
        DRIVE_2D_BY_URL:'drive_2d_by_url',
        // 发送2d文字驱动
        DRIVE_2D_BY_TEXT:'drive_2d_by_text',
        // 发送flownode驱动ue
        DRIVE_UE_BY_FLOWNODE:'drive_ue_by_flownode',
        // 发送ue播放移动动作事件
        DRIVE_UE_MOVE:'drive_ue_move',
        // 发送ue播放多模态数据事件
        DRIVE_UE_MULTIDATA:'drive_ue_multidata',
        // 设置multidata 用于ue播放
        SET_MULTIDATA:'set_multidata',
        // 发送声音变化状态（当前是否有声音）
        PATICIPANT_SPEAKING:'paticipant_speaking',
        // 收到聊天消息
        MESSAGE_CHAT_RECIVE:'message_chat_recive',
        // 收到动作消息
        MESSAGE_ACTION_RECIVE:'message_action_recive',
        // 更新聊天消息
        MESSAGE_CHAT_UPDATE:'message_chat_update',
        // 收到表情消息
        MESSAGE_VISEME_RECIVE:'message_viseme_recive',
        // 发送通知服务器播放声音消息
        MESSAGE_VISEME_ACK_RETRUN:'message_viseme_actRetrun',
        // 发送文字驱动
        TEXT_DRIVE:'text_drive',
        // 发送消息
        MESSAGE_SEND:'message_send',
        // 连接成功
        CONNECTED:'connected',
        // 连接关闭
        DISCONNECTED:'disconnected',
    },
    WEBHUMAN:{
        ACTIVE_BASE_ACTION:'active_base_action',
        STOP_BASE_ACTION:'stop_base_action',
        CHANGE_COSTUME:'change_costume',
        CHANGE_FULLBODY:'change_fullbody',
        ACTION_PLAY:'action_play',
        ACTION_SET_BY_TIME:'action_set_by_time',
        ACTION_STOP:'action_stop',
        VISEME_PLAY:'viseme_play',
        VISEME_STOP:'viseme_stop',
        
        VISEME_SET_BY_TIME:'viseme_set_by_time',
        STOP_VISEME_AUDIO:'stop_viseme_audio',
    },
    HUMAN2D:{
        PLAY_RTC:'play_rtc',
    },
    CHATBOX:{
        ADD_THINK_MESSAGE:'add_think_message',
        ADD_MESSAGE:'add_message',
        ADD_WAITING_MESSAGE:'add_waiting_message',
        STOP_REPLY:'stop_reply',
        UPDATE_CHATBOX_VOLUME:'update_chatbox_volume',
        CLEAR_WAITING_TIMEOUT:'clear_waiting_timeout',
        UPDATE_USER_ACTIVE:'update_user_active',
    },
    RENDERER:{
        SET_SHOW_INTERRUPT_BUTTON:'set_show_interrupt_button',
        SET_SHOW_INTERRUPT_TIP:'set_show_interrupt_tip',
        PLAY_ANIMATION:'play_animation',
        UPDATE_RENDER:'update_render',
        UPDATE_VALUE:'update_value',
        GET_ACTION:'get_action',
        SET_FLOWNODE:'set_flownode',
        ADD_FLOWNODE:'add_flownode',
        PLAY_FLOWNODE:'play_flownode',
        CLEAR_FLOWNODE:'clear_flownode',
        FLOWNODE_LIST_END:'flownode_list_end',
        SET_UE_FLOWNODE_LIST_START:'set_ue_flownode_list_start',
        SET_UE_FLOWNODE_LIST_END:'set_ue_flownode_list_end',
        START_RECORDING:'start_recording',
        STOP_RECORDING:'stop_recording',
    },
    SLEEPING_CONTROL:{
        UPDATE_WAKEUP_STATUS:'update_wakeup_status',
        WAKEUP:'wakeup',
        SLEEP:'sleep',
        ON_SLEEP_START:'on_sleep_start',
        ON_WAKEUP_START:'on_wakeup_start',
    },
    LAYOUT:{
        SHOW_BOTTOM:'show_bottom',
        SHOW_CENTER_RIGHT:'show_center_right',
    },
    TIMELINE:{
        UPDATE_TIMELINE_DATA:'update_timeline_data',
        ADD_KEYFRAME:'add_keyframe',
        SET_CURRENT_TIME:'set_current_time',
        MUTE_AUDIO:'mute_audio',
        UNMUTE_AUDIO:'unmute_audio',
    },
    ATTR:{
        SELECT_ITEM:'select_item'
    },
    LOADING:{
        START_SCENE:'start_scene',
        START_SCENE_CLICK:'start_scene_click',
        SET_LOADING_STYLE:'set_loading_style',
        UPDATE_LOADING_PROGRESS:'update_loading_progress',
        UPDATE_LOADING_WORD:'update_loading_word',
        LOAD_FINISH:'load_finish',
    },
    EVENT:{
        TRIGGER_EVENT:'trigger_event',
    }

}
export const componentTypes = {
    AIHUMAN_ASSET:'aihuman_asset',
    VIEWPORT:'viewport',
    SOUND:'sound',
    ROLE_BIND:'role_bind',
    ROLE_SETTING:'role_setting',
    AIBOT:'aibot',
    SPEECH_SCRIPT:'speech_script',
    SLEEP_SETTING:'sleep_setting',
    COMPONENT_ATTR:'componenet_attr',
    FLOW_EDIT:{
        IMAGE:'flow_edit_image',
        VIDEO:'flow_edit_video',
        ACTION:'flow_edit_action',
        SVGANIM:'flow_edit_svgAnim',
        SPEECH:'flow_edit_speech',
        EVENT:'flow_edit_event',
    }
}
export const viewportComponentTypes = {
    INPUT:'input',
    CHATBOX:'chatbox',
    QUESTIONS:'questions',
    IMAGE:'image',
    VIDEO:'video',
    WEBFRAME:'webframe'
}